@import "./common";

.layafamily-img{
    img{
        width: 100%;
    }
}

.layafamily{
    padding-top: 60px;
    padding-bottom: 50px;
    background-color: #fff;
    .container{
        h2{
            font-size: 36px;
            font-weight: 600;
            margin-bottom: 28px;
        }
        >p{
            font-size: 21px;
            width: 56%;
            margin-bottom: 22px;
        }
        .row{
            .family-intro{
                p{
                    // width: 90%;
                    font-size: 14px;
                    margin-bottom: 12px;
                    
                    text-indent: 20px;
                    line-height: 32px;
                }
            }

            .family-img{
                img{
                    width: 90%;
                }
            }
        }
    }
}

.layaperson{
    padding-top: 60px;
    padding-bottom: 50px;
    background-color: #8cc11f;
    .container{
        h2{
            color: #fff;
            font-size: 36px;
            font-weight: 600;
            margin-bottom: 34px;
        }
        .row{
            .person-text{
                p{
                    font-size: 14px;
                    color: #fff;
                    margin-bottom: 18px;
                    line-height: 24px;
                }
            }

            .person-email{
                p{
                    color: #fff;
                    line-height: 24px;
                } 
                .email-box{
                    width: 65%;
                    border: 1px solid #fff;
                    padding: 7px 5px 7px 12px;
                    background-color: #fff;
                    border-radius: 3px;
                    color: #8cc11f;
                    font-weight: bold;
                    font-size: 20px;
                    margin-bottom: 14px;
                }
            }
        }
    }
}

.persontxt{
    margin-top: 100px;
    background-color: #fff;
    .container{
        position: relative;
        p{
            font-size: 14px;
        }
        p:nth-of-type(1){
            font-size: 26px;
            color: #8cc11f;
            margin-bottom: 26px;
        }
        p:not(:nth-of-type(1)){
            text-indent: 25px;
        }
        h3{
            font-size: 18px;
        }
    }
    .container::after{
        content: "";
        position: absolute;
        bottom: -60px;
        left: 0;
        width: 100%;
        border: 1px solid grey;
    }
}
.lastpersontxt{
    margin-bottom: 100px;
    .container::after{
        border: none;
    }
}

.contacts{
    background-color: #f4f4f4;
    padding-top: 20px;
    .container{
        h1{
            font-size: 36px;
            margin-bottom: 40px;
        }
        .contactways{
            margin-bottom: 28px;
            display: flex;
            flex-wrap: wrap;
            .location{
                display: flex;
                align-items: center;
                flex: 0 0 41%;
                background-color: #fff;
                margin-right: 35px;
                margin-bottom: 20px;
                padding-left: 18px;
                padding-top: 10px;
                padding-bottom: 10px;
                img{
                    margin-right: 8px;
                    width: 15%;
                }
                span{
                    font-size: 16px;
                }
            }
            
        }  
    }
}


@media screen and (min-width: 992px) and (max-width: 1200px){
    .layafamily{
        .container{
            .row{
                .family-intro{
                    p{
                        line-height: 26px;
                    }
                }
            }
        }
    }

    .persontxt{
        margin-top: 60px;
        .container::after{
            bottom: -36px;
        }
    }

    .contacts{
        .container{
            .contactways{
                .location{
                    span{
                        font-size: 14px;
                    }
                }
            }
        }
    }
}

@media screen and (min-width: 768px) and (max-width: 992px){
    .layafamily{
        padding-top: 18px;
        padding-bottom: 35px;
        .container{
            h2{
                font-size: 30px;
                margin-bottom: 18px;
            }
            >p{
                font-size: 18px;
                width: 57%;
                margin-bottom: 8px;
            }
            .row{
                .family-intro{
                    p{
                        font-size: 12px;
                        margin-bottom: 8px;
                        line-height: 20px;
                    }
                } 
                .family-img{
                    img{
                        width: 85%;
                    }
                }
            }
        }
    }

    .layaperson{
        padding-top: 18px;
        padding-bottom: 35px;
        .container{
            h2{
                font-size: 30px;
                margin-bottom: 18px;
            }
            .row{
                .person-text{
                    p{
                        margin-bottom: 12px;
                    }
                }
                .person-email{
                    .email-box{
                        width: 58%;
                        padding: 4px 0px 4px 6px;
                        border-radius: 2px;
                        font-size: 14px;
                        margin-bottom: 12px;
                    }
                }
            }
        }
    }

    .persontxt{
        margin-top: 36px;
        .container{
            p:nth-of-type(1){
                margin-bottom: 0;
            }
            h3{
                margin-top: 10px;
            }
        }
        .container::after{
            bottom: -22px;
        }
    }

    .contacts{
        .container{
            h1{
                font-size: 30px;
                margin-top: 10px;
                margin-bottom: 25px;
                
            }
            .contactways{
                .location{
                    display: flex;
                    align-items: center;
                    img{
                        width: 18%;
                    }
                }
            }
        }
    }

    .lastpersontxt{
        margin-bottom: 65px;
    }

    .contacts{
        .container{
            h1{
                font-size: 28px;
            }
            .contactways{
                .location{
                    span{
                        font-size: 14px;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 768px){
    .layafamily{
        padding-top: 2px;
        padding-bottom: 8px;
        .container{
            text-align: center;
            h2{
                font-size: 18px;
                margin-bottom: 6px;
                text-align: center;
            }
            >p{
                font-size: 13px;
                width: 100%;
                margin-bottom: 8px;
            }
            .row{
                .family-intro{
                    p{
                        text-align: left;
                        text-indent: 0;
                        font-size: 12px;
                        line-height: 18px;
                        margin-bottom: 10px;
                    }
                    // p:nth-of-type(2){
                    //     width: 175%;
                    // }
                }
            }
        }
    }

    .layaperson{
        padding-top: 0px;
        padding-bottom: 8px;
        .container{
            h2{
                margin-bottom: 10px;
                font-size: 18px;
                text-align: center;
            }
            .row{
                text-align: center;
                .person-text{
                    p{
                        font-size: 12px;
                        margin-bottom: 8px;
                        line-height: 18px;
                        margin-bottom: 2px;
                    }
                }
                .person-email{
                    p{
                        line-height: 18px;
                        font-size: 12px;
                        margin-bottom: 3px;
                    }
                    .email-box{
                        margin: 0 auto;
                        width: 32%;
                        margin-bottom: 6px;
                        font-size: 12px;
                        padding: 2px 2px 2px 2px;
                        border-radius: 3px;
                    }
                }
            }
        }
    }

    .persontxt{
        margin-top: 24px;
        .container{
            p{
                font-size: 12px;
                margin-bottom: 3px;
            }
            p:not(:nth-of-type(1)){
                text-indent: 0;
            }
            p:nth-of-type(1){
                font-size: 18px;
                margin-bottom: 0;
            }
            h3{
                margin-top: 8px;
                margin-bottom: 6px;
            }
        }
        .container::after{
            bottom: -52px;
        }
    }
    
    .lastpersontxt{
        margin-bottom: 40px;
    }

    .contacts{
        .container{
            h1{
                font-size: 18px;
                margin-bottom: 14px;
                margin-top: 0;
            }
            .contactways{
                .location{
                    padding: 0;
                    flex: 1 0 40%;
                    span{
                        font-size: 12px;
                    }
                    img{
                        width: 12%;
                    }
                }
            }
        }
    }
} 